package cn.gov.pbc.exam.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.gov.pbc.exam.pojo.Answer;

public interface AnswerMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Answer record);

    int insertSelective(Answer record);

    Answer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Answer record);

    int updateByPrimaryKey(Answer record);
    
    List<Answer> selectAnswerByQuestionId(Integer questionId);
    
    int insertAnswerBatch(@Param("list")List<Answer> list);
}